/*
 * Powered By [ERP]
 * Since 2014 - 2016
 */

package com.apis.restful.user.service;

import com.apis.javacommon.base.BaseManager;
import com.apis.restful.user.mapper.UserMapper;
import com.apis.restful.user.model.User;
import com.apis.restful.user.query.UserQuery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service(value = "userService")
@Transactional
public class UserManager extends BaseManager<User,UserQuery> implements UserService{

	@Autowired
	private UserMapper userMapper;

	public UserMapper getBaseMapper() {
		return this.userMapper;
	}

	@Override
	public List<User> getByName(UserQuery query) {
		// TODO Auto-generated method stub
		return userMapper.getByName(query);
	}

}
